unit UnitCalendario;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls;

type
  TfrmCalendario = class(TForm)
    MonthCalendar1: TMonthCalendar;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmCalendario: TfrmCalendario;

implementation

{$R *.dfm}

procedure TfrmCalendario.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
 frmCalendario:=nil;
 Action := caFree;
end;

procedure TfrmCalendario.FormCreate(Sender: TObject);
begin
 MonthCalendar1.Date:=Date;
end;

end.
